<template>
    <div class="content-wrapper-view log">
        <div class="content-wrapper-body">
            <el-button type="primary" size="medium" icon="el-icon-search" @click="scheduler01">定时任务01</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="scheduler02">定时任务02</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="scheduler03">定时任务03</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="scheduler04">定时任务04</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="scheduler05">定时任务05</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="serialNumberUtil">获取订单号</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="sendSMSValidCode">测试发送短信验证码</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="testPost">测试POST</el-button>
            <el-button type="primary" size="medium" icon="el-icon-search" @click="accessToken">accessToken</el-button>
        </div>
    </div>
</template>

<script>
import http from "@/libs/http";
import { ResultMessage } from "@/libs/response";
export default {
    name: "Test",
    data() {
        return {};
    },
    methods: {
        scheduler01() {
            http({
                url: '/test/scheduler01',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        scheduler02() {
            http({
                url: '/test/scheduler02',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        scheduler03() {
            http({
                url: '/test/scheduler03',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        scheduler04() {
            http({
                url: '/test/scheduler04',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        scheduler05() {
            http({
                url: '/test/scheduler05',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        serialNumberUtil() {
            http({
                url: '/test/serialNumberUtil',
                method: 'get'
            }).then(response => {
                ResultMessage(response)
            })
        },
        sendSMSValidCode() {
            http({
                url: '/mall/user/sendSMSValidCode',
                method: 'get',
                params: {mobile: '15602208451'}
            }).then(response => {
                ResultMessage(response)
            })
        },
        testPost() {
            http({
                url: '/mall/user/checkSMSValidCode',
                method: 'get',
                params: {mobile: '15602208451', smsCode: '132465'},
            }).then(response => {
                ResultMessage(response)
            })
        },
        accessToken() {
            http({
                url: '/test/accessToken',
                method: 'get',
            }).then(response => {
                ResultMessage(response)
            })
        }
    }
};
</script>

<style scoped>
</style>